import request from '@/utils/request'
export function getPostList(data){
    return request({
        url:'/system/post/list',
        method:'post',
        data
    })
}
//新增
export function addPostList(data){
    return request({
        url:'/system/post/insert',
        method:'post',
        data
    })
}
//修改详细查询
export function getPostDetalis(id){
    return request({
        url:`/system/post/${id}`,
    })
}
//修改
export function editPostList(data){
    return request({
        url:'/system/post/update',
        method:'put',
        data
    })
}
//删除
export function deletePostList(id){
    return request({
        url:`/system/post/delete/${id}`,
        method:'delete'
    })
}